<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>农资与农产品全程供应链物流平台-新增用户</title>
<meta name="kewywords" content="农资与农产品全程供应链物流平台"/>
<meta name="description" content="农资与农产品全程供应链物流平台"/>
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			//alert($("#selectIds").val());
			if($("#selectIds").val()!=""){
				setSelectedValue("authorityType",$("#selectIds").val());
			}
		});
		function setSelectedValue(id,value){
		//alert(id + value);
		var obj = document.getElementById(id);
		//alert(obj);
			for( i = 0;obj.options.length > i; i++){
				if(obj.options[i].value == value){
					obj.options[i].selected = true;
					return;
				}
			}
		}
	</script>
</head>
<body>
<%@include file="top.jsp" %>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	    <td width="187" height="37" bgcolor="#e0e0e0" class="brt bbt">
	    	<div class="topleft fl">系统菜单栏</div></td>
	    <td bgcolor="#e7e7e7" class=" bbt">
	    	<div class="topleft fl">您现在的位置：<a href="#">首页</a>&nbsp;>&nbsp;<span>新增用户</span></div>
	    </td>
	</tr>
	<tr>
	    <td width="187" height="100%" valign="top" bgcolor="#FFFFFF" class="brt">
	    	<div class="left_bk">
				<div class="menu2">
	             <%@include file="system_left.jsp" %>        
	        	</div>
	        </div>
	    </td>
	    <td align="left" valign="top" bgcolor="#FFFFFF">
	    	<div class="content" >
		    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td height="38" style="background:url(images/zz_tit.jpg) left top repeat-x;">
						<div class="tt_back fl">新增权限</div>
						<div class="fr">
							<img src="images/tit_right.jpg" alt="" width="103" height="38" />
						</div>
					</td>
		        </tr>
		        <tr>
					<td class="borders btn">
						<div style="height:350px">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td bgcolor="#fffeee" style="border-bottom:#fee7bd solid 1px;" >
								   	<form action="system/saveAuthority" method="post">	
								   	<s:hidden id="selectIds" name="selectIds" />
								   	<s:hidden name="authority.id"/>
								    <table border="0" cellspacing="0" cellpadding="0" align="left" style="margin-top:20px;margin-left: 100px;margin-bottom: 20px; " >
				                        <tr style="height: 40px;">
								  			<td align="right" width="200px;"><span style="color: red">*</span>权限名称：</td>
								  			<td  width="180px;">
								  				<input type="text" style="width: 200px;" class="input_are w122" id="authorityName" name="authority.authorityName" value="${authority.authorityName}"/></td>
								  			</tr>
								  			<tr>
								  			<td align="right" width="200px;"><span style="color: red">*</span>权限地址：</td>
								  			<td  width="180px;">
								  				<input type="text" style="width: 200px;" class="input_are w122" id="authorityAddre" name="authority.authorityAddre" value="${authority.authorityAddre}"/></td>
								  		</tr>
								  		<tr style="height: 40px;">
								  			<td align="right"><span style="color: red">*</span>权限标识：</td>
								  			<td width="180px;">
								  				<input type="text" style="width: 200px;" id="authorityCode" class="input_are w122" name="authority.authorityCode" value="${authority.authorityCode}"/></td>
								  		</tr>
								  		<tr>  
                                         <td align="right" width="200px;"><span style="color: red">*</span>权限类型：</td>
								  			<td  width="180px;">
								  			  <select id="authorityType" name="authority.authorityType" style="width:120px;">
								  			      <option value="1">系统管理员</option>
								  			      <option value="2">订单管理员</option>
								  			      <option value="3">仓库管理员</option>
								  			      <option value="4">运输管理员</option>
								  			      <option value="5">配送员</option>
								  			      <option value="6">司机</option>
								  			   </select>
								  			</td>
								  		</tr>
								  		<tr style="height: 60px;">
								  			<td colspan="4" align="center">
								  			<input type="submit" style="cursor: pointer;" class="buttons2" value="保存"/>
								  			&nbsp;&nbsp;&nbsp;&nbsp;
								  			<input type="reset" style="cursor: pointer;" class="buttons2" value="重 置" /></td>
								  		</tr>
									</table>
									</form>
								</td>
			  				</tr>
						</table>
						</div>
					</td>
				</tr>
			</table>
			</div>
		</td>
	</tr>
</table>
<div class="bottom">版权所有：安徽朗坤物联网</div>
</body>
</html>